home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 13 - 1997 (partial) / 13.04 Apr 97 / OpenDocExtentions / SelectSOM / InputFiles / SelectPart.idl < prev    next >
Encoding:
Text File  |  1996-06-19  |  4.5 KB  |  198 lines  |  [TEXT/R*ch]

  1. /*------------------------------------------------------------------------------
  2.     File:        SelectPart.idl
  3.  
  4.     Contains:    SelectPart object interface
  5.  
  6.     Written by:    Sue Dumont
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. ------------------------------------------------------------------------------*/
  10.  
  11. #ifndef _SELECTPART_
  12. #define _SELECTPART_
  13.  
  14. #ifndef _PART_
  15. #include "Part.idl"
  16. #endif
  17.  
  18. #ifndef _SELECTPARTVERS_
  19. #include "SelectPartVers.h"
  20. #endif
  21.  
  22. //==============================================================================
  23. // Classes used by this interface
  24. //==============================================================================
  25.  
  26. interface    ODSession;
  27. interface    ODWindow;
  28. interface    ODFrame;
  29. interface    ODFacet;
  30. interface    ODExtension;
  31. interface    ODStorageUnit;
  32. interface    AEDesc;
  33.  
  34. #ifdef __PRIVATE__
  35. //==============================================================================
  36. // Implementation Types
  37. //==============================================================================
  38.  
  39. typedef somToken Str63;
  40.  
  41. #endif 
  42.  
  43. //==============================================================================
  44. #pragma somemittypes on
  45.  
  46. const ODISOStr kSelectPart = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:Kind:SelectPart";
  47.  
  48.  
  49. //==============================================================================
  50. // SelectPart SOM Class
  51. //==============================================================================
  52.  
  53. module KSS
  54. {
  55. interface SelectPart : ODPart
  56. {
  57.     void            GetName();
  58.     
  59. #ifdef __PRIVATE__
  60.     void            Initialize(in ODStorageUnit storageUnit);
  61.     void            CheckAndAddProperties(in ODStorageUnit storageUnit);
  62.     ODWindow        CreateWindow(in ODTypeToken presentation, in ODSShort procID,
  63.                                     in Str63 windowTitle, in Rect windowBounds);
  64.     ODWindow        CreateResultWindow();
  65.     ODBoolean        IsResultWindowVisible();
  66.     ODWindow        ShowResultWindow();
  67.     void            HideResultWindow();
  68.     void            DisplayResult();
  69.     ODWindow        AcquireWindowByID(in ODID windowID);
  70.     ODBoolean        HandleWindowEvent(in ODEventData event, in ODFrame frame);
  71.     ODBoolean        HandleMouseEvent(in ODEventData event, in ODEventInfo eventInfo,
  72.                                     in ODFrame frame, in ODFacet facet);
  73.     void            HandleMouseUp(in ODEventInfo eventInfo, in ODFrame frame);
  74.     void            HandleMouseDown(in ODEventInfo eventInfo, in ODFacet facet);
  75.     void            HandleOSAEvent(in ODFrame frame, in ODCommandID comand);
  76.     void            LoadPalette();
  77.     void            SetClientTextData(in AEDesc source, in ODBoolean setText);    
  78.     void            DoErrorDialog(in ODFrame frame);
  79.     ODDropResult    InitiateDrag(in ODEventData event, in ODFacet facet, inout ODPoint where);
  80.     ODRgnHandle        CreateDragRegion(in ODFacet facet);    
  81. #endif //_PRIVATE_
  82.  
  83. #ifdef __SOMIDL__
  84.   implementation
  85.     {
  86.         majorversion = somClassMajorVersion;
  87.         minorversion = somClassMinorVersion;
  88.  
  89.         functionprefix = SelectPart__;
  90.  
  91.         override:
  92.             somInit,
  93.             somUninit,
  94.             AcquireExtension,
  95.             HasExtension,
  96.             ReleaseExtension,
  97.             Purge,
  98.             Release,            
  99.             ReleaseAll,
  100.             AbortRelinquishFocus,
  101.             ContainingPartPropertiesUpdated,
  102.             AdjustMenus,
  103.             AttachSourceFrame,
  104.             BeginRelinquishFocus,
  105.             CanvasChanged,
  106.             CanvasUpdated,
  107.             ChangeKind,
  108.             ClonePartInfo,
  109.             CommitRelinquishFocus,
  110.             DisplayFrameAdded,
  111.             DisplayFrameClosed,
  112.             DisplayFrameConnected,
  113.             DisplayFrameRemoved,
  114.             Draw,
  115.             ExternalizeKinds,
  116.             FacetAdded,
  117.             FacetRemoved,
  118.             FocusAcquired,
  119.             FocusLost,
  120.             FrameShapeChanged,
  121.             GeometryChanged,
  122.             GetPrintResolution,
  123.             HandleEvent,
  124.             HighlightChanged,
  125.             InitPart,
  126.             InitPartFromStorage,
  127.             LinkStatusChanged,
  128.             Open,
  129.             PresentationChanged,
  130.             ReadPartInfo,
  131.             SequenceChanged,
  132.             ViewTypeChanged,
  133.             WritePartInfo;
  134.             
  135.         releaseorder:
  136.             CreatePalette,
  137.             GetName,
  138.  
  139. #ifdef __PRIVATE__
  140.             Initialize,
  141.             CheckAndAddProperties,
  142.             CreateWindow,
  143.             CreateResultWindow,
  144.             IsResultWindowVisible,
  145.             ShowResultWindow,
  146.             HideResultWindow,
  147.             DisplayResult,
  148.             AcquireWindowByID,
  149.             HandleWindowEvent,
  150.             HandleMouseEvent,
  151.             HandleMouseUp,
  152.             HandleMouseDown,
  153.             HandleOSAEvent,
  154.             LoadPalette,
  155.             SetClientTextData,
  156.             DoErrorDialog,
  157.             InitiateDrag,
  158.             CreateDragRegion;
  159. #else
  160.             reserved1,
  161.             reserved2,
  162.             reserved3,
  163.             reserved4,
  164.             reserved5,
  165.             reserved6,
  166.             reserved7,
  167.             reserved8,
  168.             reserved9,
  169.             reserved10,
  170.             reserved11,
  171.             reserved12,
  172.             reserved13,
  173.             reserved14,
  174.             reserved15,
  175.             reserved16,
  176.             reserved17,
  177.             reserved18,
  178.             reserved19;
  179. #endif
  180.  
  181. #ifdef __PRIVATE__
  182.  
  183.         ODPart                    fSelf;
  184.         ODSLong                    fButton;
  185.         ODScriptingConnection    fScriptConnection;
  186.         ODBoolean                fRecordingOn;
  187.  
  188. #endif // __PRIVATE__
  189.   };
  190.  
  191. #endif __SOMIDL__
  192.  };    
  193. };
  194.  
  195. #pragma somemittypes off
  196.  
  197. #endif __SELECTPART__
  198.